<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>个人中心</title>

    <link
      rel="shortcut icon"
      href="https://static.jyshare.com/images/favicon.ico"
    />
    <link
      rel="stylesheet"
      href="//at.alicdn.com/t/c/font_4522611_wieqaqu8q4.css"
    />

    <link rel="stylesheet" href="<?php echo DIR_PUBLIC; ?>/css/reset.css" />
    <link rel="stylesheet" href="<?php echo DIR_PUBLIC; ?>/css/public.css" />
    <link
      rel="stylesheet"
      href="<?php echo DIR_PUBLIC; ?>/css/personContent.css"
    />
  </head>

  <body>
    <div class="header">
      <div class="logo">
        <a href="http://127.24.6.11/">智慧璇玑</a>
      </div>
      <div class="banner">
        <a href="http://127.24.6.11/">首页</a>
        <a href="<?php echo DIR_MODEL; ?>/publish.php">新帖</a>
        <a href="<?php echo DIR_MODEL; ?>/list_father.php">话题</a>
      </div>
      <ul>
        <li>
          <a href="<?php echo DIR_MODEL; ?>/login.php">登录</a>&nbsp;/&nbsp;
          <a href="<?php echo DIR_MODEL; ?>/register.php">注册</a>
        </li>
        <li>
          <a href="<?php echo DIR_MODEL; ?>/upload_img.php">
            <span class="iconfont icon-geren"></span>&nbsp;个人中心
          </a>
        </li>
        <li>
          <a href="./logout.php">
            <span class="iconfont icon-kaiguan"></span>&nbsp;注销
          </a>
        </li>
      </ul>
    </div>

    <div class="content">
      <div class="img">
        <img
          src="../uploads/images/<?php echo $_SESSION['userInfo']['user_image']; ?>"
          alt=""
          class="imgItem"
        />
      </div>
      <form
        action="./upload_img_deal.php"
        method="post"
        enctype="multipart/form-data"
      >
        <!-- <input type="file" name="image" /> -->
        <div class="grid">
          <input class="file-input" type="file" id="picture" name="image" />
        </div>
        <!-- <button type="submit">上传头像</button> -->
        <button class="button">
          <svg class="svgIcon" viewBox="0 0 384 512">
            <path
              d="M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"
            ></path>
          </svg>
        </button>
      </form>
      <ul>
        <li>
          昵称：<?php print $_SESSION['userInfo']['user_name']; ?>
          <button>修改</button>
        </li>
        <li>
          性别：保密
          <button>修改</button>
        </li>
        <li>
          年龄：
          <button>修改</button>
        </li>
        <li>
          邮箱：
          <button>修改</button>
        </li>
        <li>
          个人简介：这家伙很懒，什么都没留下
          <button>修改</button>
        </li>
        <li>
          <button><a href="./logout.php">注销</a></button>
          <button><a href="./feedBack.php">反馈</a></button>
        </li>
      </ul>
    </div>

    <div class="footer">
      <div class="footer-title">智慧璇玑</div>
      <div class="footer-content">
        Copyright &copy; 2024 智慧璇玑 All Rights Reserved
      </div>
    </div>
  </body>
</html>
